package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YS_ModalSelectorField", catalog="Id")
public class YsModalSelectorField extends BaseEntity<YsModalSelectorField> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="varchar")
	private String type;
	@YsField(nameDataBase="SortNo", nameJava="sortNo", typeDataBase="int")
	private Integer sortNo;
	@YsField(nameDataBase="StateCondition", nameJava="stateCondition", typeDataBase="tinyint")
	private Integer stateCondition;
	@YsField(nameDataBase="ConditionCode", nameJava="conditionCode", typeDataBase="varchar")
	private String conditionCode;
	@YsField(nameDataBase="DictKeyBase", nameJava="dictKeyBase", typeDataBase="varchar")
	private String dictKeyBase;
	@YsField(nameDataBase="Align", nameJava="align", typeDataBase="tinyint")
	private Integer align;
	@YsField(nameDataBase="Width", nameJava="width", typeDataBase="int")
	private Integer width;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YsModalSelectorField setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public YsModalSelectorField setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public String getCode() {
		return code;
	}
	public YsModalSelectorField setCode(String code) {
		this.code = code;
		return this;
	}
	public String getName() {
		return name;
	}
	public YsModalSelectorField setName(String name) {
		this.name = name;
		return this;
	}
	public String getType() {
		return type;
	}
	public YsModalSelectorField setType(String type) {
		this.type = type;
		return this;
	}
	public Integer getSortNo() {
		return sortNo;
	}
	public YsModalSelectorField setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
		return this;
	}
	public Integer getStateCondition() {
		return stateCondition;
	}
	public YsModalSelectorField setStateCondition(Integer stateCondition) {
		this.stateCondition = stateCondition;
		return this;
	}
	public String getConditionCode() {
		return conditionCode;
	}
	public YsModalSelectorField setConditionCode(String conditionCode) {
		this.conditionCode = conditionCode;
		return this;
	}
	public String getDictKeyBase() {
		return dictKeyBase;
	}
	public YsModalSelectorField setDictKeyBase(String dictKeyBase) {
		this.dictKeyBase = dictKeyBase;
		return this;
	}
	public Integer getAlign() {
		return align;
	}
	public YsModalSelectorField setAlign(Integer align) {
		this.align = align;
		return this;
	}
	public Integer getWidth() {
		return width;
	}
	public YsModalSelectorField setWidth(Integer width) {
		this.width = width;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsModalSelectorField setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsModalSelectorField setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsModalSelectorField setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsModalSelectorField ysModalSelectorField(
		Long pid,
		String code,
		String name,
		String type,
		Integer sortNo,
		Integer stateCondition,
		String conditionCode,
		String dictKeyBase,
		Integer align,
		Integer width,
		Integer status
			) {
		YsModalSelectorField entity = new YsModalSelectorField();
		entity.setPid(pid);
		entity.setCode(code);
		entity.setName(name);
		entity.setType(type);
		entity.setSortNo(sortNo);
		entity.setStateCondition(stateCondition);
		entity.setConditionCode(conditionCode);
		entity.setDictKeyBase(dictKeyBase);
		entity.setAlign(align);
		entity.setWidth(width);
		entity.setStatus(status);
		return entity;
	}
}